package com.zmy.xcx.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zmy.xcx.dao.entity.COPDSelfCheckDO;
import com.zmy.xcx.dao.mapper.COPDSelfCheckMapper;
import com.zmy.xcx.dto.req.COPDSelfCheckReqDTO;
import com.zmy.xcx.service.COPDSelfCheckService;
import org.springframework.stereotype.Service;


/**
 * @Author Melancholy
 * @Date 2025/4/1
 * @Description: COPD�Բ��߼�ʵ�ֲ�
 */
@Service
public class COPDSelfCheckServiceImpl extends ServiceImpl<COPDSelfCheckMapper, COPDSelfCheckDO> implements COPDSelfCheckService {
    @Override
    public void createCOPDSelfCheckRecord(COPDSelfCheckReqDTO copdSelfCheckReqDTO) {
        COPDSelfCheckDO copdSelfCheckDO = BeanUtil.toBean(copdSelfCheckReqDTO, COPDSelfCheckDO.class);
        copdSelfCheckDO.setOpenid("666");
        save(copdSelfCheckDO);
    }

}
